/**
 * Course Project for User Interface Programming I, 2011
 * Group 19
 */
package justdoit.model;

import java.awt.Color;
import justdoit.controller.LanguageManager;

/**
 * The class to store the value and display string of a Theme
 * @author Can
 */
public class Theme {

    public static final String SYSTEM = "System";
    public static final String METAL = "Metal";
    public static final String MOTIF = "Motif";
    private String theme;
    private Color userColor;

    public Theme(String theme) {
        this.theme = theme;
    }

    public Color getColor() {
        return this.userColor;
    }

    public void setColor(Color color) {
        this.userColor = color;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getDisplayTheme() {
        if (this.theme.equals(Theme.SYSTEM)) {
            return LanguageManager.getString("theme.system");
        } else if (this.theme.equals(Theme.METAL)) {
            return LanguageManager.getString("theme.metal");
        } else if (this.theme.equals(Theme.MOTIF)) {
            return LanguageManager.getString("theme.motif");
        }
        return "";
    }
}
